package com.yonyou.iuap.ipaas.connector.sdwcoatencent.internal.exception;

import com.yonyou.iuap.ipaas.connector.sdk.exception.CommonErrorTypeDefinition;
import com.yonyou.yonlinker.ysb.runtime.extension.api.annotation.error.ErrorTypeProvider;
import com.yonyou.yonlinker.ysb.runtime.extension.api.error.ErrorTypeDefinition;

import java.util.HashSet;
import java.util.Set;

/**
 * ** description 描述 **
 *
 * @author : 昵称-昵称-白凌
 * @date : 2024-07-09 15:15:55
 */
public class ExecuteErrorsProvider implements ErrorTypeProvider {

    @Override
    public Set<ErrorTypeDefinition> getErrorTypes() {
        Set<ErrorTypeDefinition> errors = new HashSet<>();
        errors.add(CommonErrorTypeDefinition.SERVER_REQUEST_ERROR);
        errors.add(CommonErrorTypeDefinition.SERVER_RESPONSE_ERROR);
        errors.add(CommonErrorTypeDefinition.CONNECTIVITY);
        errors.add(CommonErrorTypeDefinition.SOCKETTIMEOUT);
        errors.add(CommonErrorTypeDefinition.PARAMETER_ERROR);
        return errors;
    }
}
